<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<base href="<?php echo base_url();?>"/>
		<link href="css/admin.css" rel="stylesheet" type="text/css" />
		<script src="js/admin/comm.js"></script>
	</head>
	<body>
		<h1>资讯管理</h1>
		<table class="box">
			<tr>
				<td width="10%">ID</td>
				<td>标题</td>
				<td width="20%">时间</td>
				<td width="15%">操作</td>
			</tr>
			<?php
				if(count($data)<1){
					echo("<td colspan=\"4\">no record...</td>");
				}
				else{
					foreach($data as $value){
			?>
			<tr>
				<td><?=$value['id']?></td>
				<td><a href="<?=site_url('news/content/'.$value['id'])?>" target="_blank"><?=mb_substr($value['title'],0,30,"utf8")?></a></td>
				<td><?=$value['create_time']?></td>
				<td><a href="<?=site_url('news/content/'.$value['id'])?>" target="_blank">浏览</a> <a href="<?=site_url('admin/news/edit/'.$value['id'])?>">编辑</a> <a href="<?=site_url('admin/news/delete/'.$value['id'])?>">删除</a></td>
			</tr>
			<?php
					}
				}
			?>
		</table>
	</body>
</html>